package com.loveprogrammer.eternity.model.product;

import com.loveprogrammer.eternity.model.Monster;

/**
 * @version 1.0.0
 * @description:
 * @author: eric
 * @date: 2022-08-08 18:07
 **/
public class FallingCoinCalculator implements FallingCoin{

    @Override
    public Coin getFallingCoin(Monster monster) {
        Coin coin = new Coin();
        // 基础掉落的银币就是野怪的等级 * 级别
        int base = monster.getLevel() * monster.getMonsterQualityEnum().getCode();
        coin.setGoldCoin(base);
        // TODO 如果级别大于
        return coin;
    }
}
